package tc.jv.task10;

import tc.jv.task4.Vector;
import tc.jv.task8.Vectors;

public class Main
{

	public static void main(String[] args)
	{
		final int SIZE = 30;
		
		Vector v = Vectors.createInstance(SIZE);
		Thread writer = new ThreadWriter(v),
			   reader = new ThreadReader(v);
		
		writer.setPriority(Thread.MAX_PRIORITY);
		reader.setPriority(Thread.MIN_PRIORITY);
		
		writer.start();
		reader.start();
	}

}
